package com.starling.core
{
	import flash.display.MovieClip;
	import flash.geom.Rectangle;

	public class InfoScale9Grid
	{
		public static function getInfo(mc:MovieClip ,scale:Number):Object
		{
			var rect:Rectangle = mc.getBounds(mc.parent);
			
			return {
				x:BNumber.formatNumber((mc.scale9Grid.x - rect.x) * scale ,2),
				y:BNumber.formatNumber((mc.scale9Grid.y - rect.y) * scale ,2),
				width:BNumber.formatNumber((mc.scale9Grid.width) * scale ,2),
				height:BNumber.formatNumber((mc.scale9Grid.height) * scale ,2)
			}
		}
	}
}